function debounce(fn, wait){
    return function (arg) {
        let that = this
        let _arg = arg
        // let timer = null
        clearTimeout(timer)
        timer = setTimeout(()=>{
            fn.call(that, _arg)
        },wait)
    }
}
